﻿<?php

function titulo(){
	echo "Sample";
}

function titulopanel(){	
	echo "Panel de Administracion - Sample";
}

//$dominio = 'http://www.deyc-corrientes.gov.ar/direc/';
//$DIRECTORY = 'http://www.deyc-corrientes.gov.ar/direc/';

$dominio = 'http://localhost/sample/';
$DIRECTORY = 'http://localhost/sample/';

function getLink($id,$descripcion){
	$linkt = strtolower($descripcion);					
	$healthy = array("á","é","í","ó","ú","%20", " ","'",'"',"“","”",'ñ','?','¿');
	$yummy   = array("a","e","i","o","u", "-", "-","-","","","",'n', '', '');
	$linkt = str_replace($healthy, $yummy, $linkt);
	
	//web en produccion
	//$linkt = 'http://www.deyc-corrientes.gov.ar/direc/tema/'.$id.'-'.$linkt.'.html';
	
	//web en dev
	$linkt = 'http://localhost/sample/noticias/'.$id.'/'.$linkt.'.html';
	
	return $linkt;
}

?>